{% extends "smra_portal/portal_template.html" %} 
{% block page_id %}login{% endblock %} 
{% load url from future %}

{% block leftbar %}
	<h1>Enter Credentials</h1>
 	<form method="post" action="{% url 'django.contrib.auth.views.login' %}">
  		{% csrf_token %} <!--  it is very important that this token is used for all forms that POST -->
		<div class="side_row">
    		<span>{{ form.username.label_tag }}</span> 
    		<span>{{ form.username }}</span>
    	</div>
		<div class="side_row">
    		<span>{{ form.password.label_tag }}</span> 
    		<span>{{ form.password }}</span>
    	</div>
    	 <div class="side_row">
			<input class="right_button" type ="submit" value="login">
			<input type="hidden" name="next" value="{% url 'smra.smra_portal.views.my_collections' %}" />
 		</div>
    	
	</form>
{% endblock %}

{% block messages %}
	{% if form.errors %}
		<div class="error_message">
			<span>Your Username and Password did not match. Please try again.</span>
		</div>
	{% endif %}
{% endblock %}
